<%--
  Created by IntelliJ IDEA.
  User: apple
  Date: 2022/4/16
  Time: 2:43 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%String path = request.getContextPath()+"/";%>
<html>
<head>
    <base href="<%=path%>">
    <title>Title</title>
</head>
<body>
<form>
<div>
    用户名:<input type="text"/><input type="submit" value="查询">
</div>
    <div>
        <table>
            <thead>
            <tr>
                <th>序号</th>
                <th>用户名</th>
                <th>姓名</th>
                <th>操作</th>
            </tr>
            </thead>
            <c:forEach items="${page.list}" var="user" varStatus="t">
                <tr>
                    <td>${t.index+1}</td>
                    <td>${user.userName}</td>
                    <td>${user.realName}</td>
                    <td>
                        <a href="/user/toEdit/${user.id}">编辑</a>
                        &nbsp;&nbsp;
                        <a href="javascript:void(0)">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>
</form>
</body>
</html>
